using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class EmojiDownloadInfoResp : GeneratedMessageLite<EmojiDownloadInfoResp, EmojiDownloadInfoResp.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<EmojiDownloadInfoResp, EmojiDownloadInfoResp.Builder>
		{
			private bool resultIsReadOnly;
			private EmojiDownloadInfoResp result;
			protected override EmojiDownloadInfoResp.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override EmojiDownloadInfoResp MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override EmojiDownloadInfoResp DefaultInstanceForType
			{
				get
				{
					return EmojiDownloadInfoResp.DefaultInstance;
				}
			}
			public int Ret
			{
				get
				{
					return this.result.Ret;
				}
				set
				{
					this.SetRet(value);
				}
			}
			public int StartPos
			{
				get
				{
					return this.result.StartPos;
				}
				set
				{
					this.SetStartPos(value);
				}
			}
			public int TotalLen
			{
				get
				{
					return this.result.TotalLen;
				}
				set
				{
					this.SetTotalLen(value);
				}
			}
			public SKBuiltinBuffer_t EmojiBuffer
			{
				get
				{
					return this.result.EmojiBuffer;
				}
				set
				{
					this.SetEmojiBuffer(value);
				}
			}
			public string MD5
			{
				get
				{
					return this.result.MD5;
				}
				set
				{
					this.SetMD5(value);
				}
			}
			public string ID
			{
				get
				{
					return this.result.ID;
				}
				set
				{
					this.SetID(value);
				}
			}
			public Builder()
			{
				this.result = EmojiDownloadInfoResp.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(EmojiDownloadInfoResp cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private EmojiDownloadInfoResp PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					EmojiDownloadInfoResp other = this.result;
					this.result = new EmojiDownloadInfoResp();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override EmojiDownloadInfoResp.Builder Clear()
			{
				this.result = EmojiDownloadInfoResp.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override EmojiDownloadInfoResp.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new EmojiDownloadInfoResp.Builder(this.result);
				}
				return new EmojiDownloadInfoResp.Builder().MergeFrom(this.result);
			}
			public override EmojiDownloadInfoResp BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override EmojiDownloadInfoResp.Builder MergeFrom(IMessageLite other)
			{
				if (other is EmojiDownloadInfoResp)
				{
					return this.MergeFrom((EmojiDownloadInfoResp)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override EmojiDownloadInfoResp.Builder MergeFrom(EmojiDownloadInfoResp other)
			{
				return this;
			}
			public override EmojiDownloadInfoResp.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override EmojiDownloadInfoResp.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(EmojiDownloadInfoResp._emojiDownloadInfoRespFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = EmojiDownloadInfoResp._emojiDownloadInfoRespFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 16u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 8u)
						{
							this.result.hasRet = input.ReadInt32(ref this.result.ret_);
							continue;
						}
						if (num3 == 16u)
						{
							this.result.hasStartPos = input.ReadInt32(ref this.result.startPos_);
							continue;
						}
					}
					else
					{
						if (num3 <= 34u)
						{
							if (num3 == 24u)
							{
								this.result.hasTotalLen = input.ReadInt32(ref this.result.totalLen_);
								continue;
							}
							if (num3 == 34u)
							{
								SKBuiltinBuffer_t.Builder builder = SKBuiltinBuffer_t.CreateBuilder();
								if (this.result.hasEmojiBuffer)
								{
									builder.MergeFrom(this.EmojiBuffer);
								}
								input.ReadMessage(builder, extensionRegistry);
								this.EmojiBuffer = builder.BuildPartial();
								continue;
							}
						}
						else
						{
							if (num3 == 42u)
							{
								this.result.hasMD5 = input.ReadString(ref this.result.mD5_);
								continue;
							}
							if (num3 == 50u)
							{
								this.result.hasID = input.ReadString(ref this.result.iD_);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public EmojiDownloadInfoResp.Builder SetRet(int value)
			{
				this.PrepareBuilder();
				this.result.hasRet = true;
				this.result.ret_ = value;
				return this;
			}
			public EmojiDownloadInfoResp.Builder ClearRet()
			{
				this.PrepareBuilder();
				this.result.hasRet = false;
				this.result.ret_ = 0;
				return this;
			}
			public EmojiDownloadInfoResp.Builder SetStartPos(int value)
			{
				this.PrepareBuilder();
				this.result.hasStartPos = true;
				this.result.startPos_ = value;
				return this;
			}
			public EmojiDownloadInfoResp.Builder ClearStartPos()
			{
				this.PrepareBuilder();
				this.result.hasStartPos = false;
				this.result.startPos_ = 0;
				return this;
			}
			public EmojiDownloadInfoResp.Builder SetTotalLen(int value)
			{
				this.PrepareBuilder();
				this.result.hasTotalLen = true;
				this.result.totalLen_ = value;
				return this;
			}
			public EmojiDownloadInfoResp.Builder ClearTotalLen()
			{
				this.PrepareBuilder();
				this.result.hasTotalLen = false;
				this.result.totalLen_ = 0;
				return this;
			}
			public EmojiDownloadInfoResp.Builder SetEmojiBuffer(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasEmojiBuffer = true;
				this.result.emojiBuffer_ = value;
				return this;
			}
			public EmojiDownloadInfoResp.Builder SetEmojiBuffer(SKBuiltinBuffer_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasEmojiBuffer = true;
				this.result.emojiBuffer_ = builderForValue.Build();
				return this;
			}
			public EmojiDownloadInfoResp.Builder MergeEmojiBuffer(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasEmojiBuffer && this.result.emojiBuffer_ != SKBuiltinBuffer_t.DefaultInstance)
				{
					this.result.emojiBuffer_ = SKBuiltinBuffer_t.CreateBuilder(this.result.emojiBuffer_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.emojiBuffer_ = value;
				}
				this.result.hasEmojiBuffer = true;
				return this;
			}
			public EmojiDownloadInfoResp.Builder ClearEmojiBuffer()
			{
				this.PrepareBuilder();
				this.result.hasEmojiBuffer = false;
				this.result.emojiBuffer_ = null;
				return this;
			}
			public EmojiDownloadInfoResp.Builder SetMD5(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasMD5 = true;
				this.result.mD5_ = value;
				return this;
			}
			public EmojiDownloadInfoResp.Builder ClearMD5()
			{
				this.PrepareBuilder();
				this.result.hasMD5 = false;
				this.result.mD5_ = "";
				return this;
			}
			public EmojiDownloadInfoResp.Builder SetID(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasID = true;
				this.result.iD_ = value;
				return this;
			}
			public EmojiDownloadInfoResp.Builder ClearID()
			{
				this.PrepareBuilder();
				this.result.hasID = false;
				this.result.iD_ = "";
				return this;
			}
		}
		public const int RetFieldNumber = 1;
		public const int StartPosFieldNumber = 2;
		public const int TotalLenFieldNumber = 3;
		public const int EmojiBufferFieldNumber = 4;
		public const int MD5FieldNumber = 5;
		public const int IDFieldNumber = 6;
		private static readonly EmojiDownloadInfoResp defaultInstance;
		private static readonly string[] _emojiDownloadInfoRespFieldNames;
		private static readonly uint[] _emojiDownloadInfoRespFieldTags;
		private bool hasRet;
		private int ret_;
		private bool hasStartPos;
		private int startPos_;
		private bool hasTotalLen;
		private int totalLen_;
		private bool hasEmojiBuffer;
		private SKBuiltinBuffer_t emojiBuffer_;
		private bool hasMD5;
		private string mD5_ = "";
		private bool hasID;
		private string iD_ = "";
		private int memoizedSerializedSize = -1;
		public static EmojiDownloadInfoResp DefaultInstance
		{
			get
			{
				return EmojiDownloadInfoResp.defaultInstance;
			}
		}
		public override EmojiDownloadInfoResp DefaultInstanceForType
		{
			get
			{
				return EmojiDownloadInfoResp.DefaultInstance;
			}
		}
		protected override EmojiDownloadInfoResp ThisMessage
		{
			get
			{
				return this;
			}
		}
		public int Ret
		{
			get
			{
				return this.ret_;
			}
		}
		public int StartPos
		{
			get
			{
				return this.startPos_;
			}
		}
		public int TotalLen
		{
			get
			{
				return this.totalLen_;
			}
		}
		public SKBuiltinBuffer_t EmojiBuffer
		{
			get
			{
				return this.emojiBuffer_ ?? SKBuiltinBuffer_t.DefaultInstance;
			}
		}
		public string MD5
		{
			get
			{
				return this.mD5_;
			}
		}
		public string ID
		{
			get
			{
				return this.iD_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasRet && this.hasStartPos && this.hasTotalLen && this.hasEmojiBuffer && this.EmojiBuffer.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasRet)
				{
					num += CodedOutputStream.ComputeInt32Size(1, this.Ret);
				}
				if (this.hasStartPos)
				{
					num += CodedOutputStream.ComputeInt32Size(2, this.StartPos);
				}
				if (this.hasTotalLen)
				{
					num += CodedOutputStream.ComputeInt32Size(3, this.TotalLen);
				}
				if (this.hasEmojiBuffer)
				{
					num += CodedOutputStream.ComputeMessageSize(4, this.EmojiBuffer);
				}
				if (this.hasMD5)
				{
					num += CodedOutputStream.ComputeStringSize(5, this.MD5);
				}
				if (this.hasID)
				{
					num += CodedOutputStream.ComputeStringSize(6, this.ID);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private EmojiDownloadInfoResp()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] emojiDownloadInfoRespFieldNames = EmojiDownloadInfoResp._emojiDownloadInfoRespFieldNames;
			if (this.hasRet)
			{
				output.WriteInt32(1, emojiDownloadInfoRespFieldNames[3], this.Ret);
			}
			if (this.hasStartPos)
			{
				output.WriteInt32(2, emojiDownloadInfoRespFieldNames[4], this.StartPos);
			}
			if (this.hasTotalLen)
			{
				output.WriteInt32(3, emojiDownloadInfoRespFieldNames[5], this.TotalLen);
			}
			if (this.hasEmojiBuffer)
			{
				output.WriteMessage(4, emojiDownloadInfoRespFieldNames[0], this.EmojiBuffer);
			}
			if (this.hasMD5)
			{
				output.WriteString(5, emojiDownloadInfoRespFieldNames[2], this.MD5);
			}
			if (this.hasID)
			{
				output.WriteString(6, emojiDownloadInfoRespFieldNames[1], this.ID);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasRet)
			{
				num ^= this.ret_.GetHashCode();
			}
			if (this.hasStartPos)
			{
				num ^= this.startPos_.GetHashCode();
			}
			if (this.hasTotalLen)
			{
				num ^= this.totalLen_.GetHashCode();
			}
			if (this.hasEmojiBuffer)
			{
				num ^= this.emojiBuffer_.GetHashCode();
			}
			if (this.hasMD5)
			{
				num ^= this.mD5_.GetHashCode();
			}
			if (this.hasID)
			{
				num ^= this.iD_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			EmojiDownloadInfoResp emojiDownloadInfoResp = value as EmojiDownloadInfoResp;
			return emojiDownloadInfoResp != null && (this.hasRet == emojiDownloadInfoResp.hasRet && (!this.hasRet || this.ret_.Equals(emojiDownloadInfoResp.ret_))) && (this.hasStartPos == emojiDownloadInfoResp.hasStartPos && (!this.hasStartPos || this.startPos_.Equals(emojiDownloadInfoResp.startPos_))) && (this.hasTotalLen == emojiDownloadInfoResp.hasTotalLen && (!this.hasTotalLen || this.totalLen_.Equals(emojiDownloadInfoResp.totalLen_))) && (this.hasEmojiBuffer == emojiDownloadInfoResp.hasEmojiBuffer && (!this.hasEmojiBuffer || this.emojiBuffer_.Equals(emojiDownloadInfoResp.emojiBuffer_))) && (this.hasMD5 == emojiDownloadInfoResp.hasMD5 && (!this.hasMD5 || this.mD5_.Equals(emojiDownloadInfoResp.mD5_))) && (this.hasID == emojiDownloadInfoResp.hasID && (!this.hasID || this.iD_.Equals(emojiDownloadInfoResp.iD_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<EmojiDownloadInfoResp, EmojiDownloadInfoResp.Builder>.PrintField("Ret", this.hasRet, this.ret_, writer);
			GeneratedMessageLite<EmojiDownloadInfoResp, EmojiDownloadInfoResp.Builder>.PrintField("StartPos", this.hasStartPos, this.startPos_, writer);
			GeneratedMessageLite<EmojiDownloadInfoResp, EmojiDownloadInfoResp.Builder>.PrintField("TotalLen", this.hasTotalLen, this.totalLen_, writer);
			GeneratedMessageLite<EmojiDownloadInfoResp, EmojiDownloadInfoResp.Builder>.PrintField("EmojiBuffer", this.hasEmojiBuffer, this.emojiBuffer_, writer);
			GeneratedMessageLite<EmojiDownloadInfoResp, EmojiDownloadInfoResp.Builder>.PrintField("MD5", this.hasMD5, this.mD5_, writer);
			GeneratedMessageLite<EmojiDownloadInfoResp, EmojiDownloadInfoResp.Builder>.PrintField("ID", this.hasID, this.iD_, writer);
		}
		public static EmojiDownloadInfoResp ParseFrom(byte[] data)
		{
			return EmojiDownloadInfoResp.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private EmojiDownloadInfoResp MakeReadOnly()
		{
			return this;
		}
		public static EmojiDownloadInfoResp.Builder CreateBuilder()
		{
			return new EmojiDownloadInfoResp.Builder();
		}
		public override EmojiDownloadInfoResp.Builder ToBuilder()
		{
			return EmojiDownloadInfoResp.CreateBuilder(this);
		}
		public override EmojiDownloadInfoResp.Builder CreateBuilderForType()
		{
			return new EmojiDownloadInfoResp.Builder();
		}
		public static EmojiDownloadInfoResp.Builder CreateBuilder(EmojiDownloadInfoResp prototype)
		{
			return new EmojiDownloadInfoResp.Builder(prototype);
		}
		static EmojiDownloadInfoResp()
		{
			EmojiDownloadInfoResp.defaultInstance = new EmojiDownloadInfoResp().MakeReadOnly();
			EmojiDownloadInfoResp._emojiDownloadInfoRespFieldNames = new string[]
			{
				"EmojiBuffer",
				"ID",
				"MD5",
				"Ret",
				"StartPos",
				"TotalLen"
			};
			EmojiDownloadInfoResp._emojiDownloadInfoRespFieldTags = new uint[]
			{
				34u,
				50u,
				42u,
				8u,
				16u,
				24u
			};
			object.ReferenceEquals(micromsg.Proto.EmojiDownloadInfoResp.Descriptor, null);
		}
	}
}
